package gazzera.node.core.messages;

import java.io.*;

public class TrustingYou extends Message
{
	public boolean trust = false;
	
	public TrustingYou(boolean trust)
	{
		super();
		this.trust = trust;
	}

	public TrustingYou()
	{
		super();
	}

	@Override
	protected void recv(DataInputStream s) throws IOException
	{
		trust = readBoolean(s);
	}

	@Override
	protected void send(DataOutputStream s) throws IOException
	{
		sendBoolean(s, trust);
	}

}
